var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

var orderSchema = new Schema({
    orderNumber: Number,
    date: Date,
    status: String,
    priceInCents: Number,
    customerId: ObjectId
});

var Order = mongoose.model('Order', orderSchema);
module.exports = Order;